]> dgit.raspbian.org Git - gnome-shell.git/commit
systemActions: Fix initial visibility of logout action
authorSebastian Keller <skeller@gnome.org>
Fri, 13 Mar 2026 00:27:29 +0000 (01:27 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Sat, 14 Mar 2026 17:47:44 +0000 (18:47 +0100)
commit21ac51df14d10d99f0fe0db76a110bceaad1f98d
tree4447d299ed2226631d7234cef3d93270462210b2
parentb8fc2555babff4b4d1b807e18bb925b156d2b45d
systemActions: Fix initial visibility of logout action

When `_updateLogout()` is called on login, the AccountsService user
might not have been loaded yet. This would have resulted in all values
being null/false, including `local_account`. Since `!localAccount` is
one of the cases where the action is available, this would have wrongly
resulted in the item being shown when not intended to be shown. But only
until something triggers another call of `_updateLogout()`, such as
locking/unlocking the session.

Related: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/9100
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4121>
(cherry picked from commit 6f5f3c1f18a3597df04f831d4a8e1cdba2c0ecea)
js/misc/systemActions.js